package com.ninong.ker.workflow;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.actuate.autoconfigure.security.servlet.ManagementWebSecurityAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @author cmd
 * @date 2018/11/15 9:20:19
 */
@EnableAsync
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class,
        SecurityAutoConfiguration.class, ManagementWebSecurityAutoConfiguration.class})
@EnableDiscoveryClient
@MapperScan("com.ninong.ker.workflow.mapper")
@ComponentScan(basePackages = {"com.ninong.ker.workflow", "com.ninong.ker.common"})
public class CmdWorkflowApplication {

    public static void main(String[] args) {
        SpringApplication.run(CmdWorkflowApplication.class, args);
    }
}
